package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业委会投票对象 owner_vote
 * 
 * @author ruoyi
 * @date 2021-08-08
 */
public class OwnerVote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 业委会投票ID */
    private String voteId;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 投票问题 */
    @Excel(name = "投票问题")
    private String question;

    /** 选项 */
    @Excel(name = "选项")
    private String options;

    /** 可投票群组 */
    @Excel(name = "可投票群组")
    private String groups;

    /** 创建者 */
    @Excel(name = "创建者")
    private String creater;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date syncTime;

    /** 截止时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long viewNumber;

    /** 投票数 */
    @Excel(name = "投票数")
    private Long voteNumber;

    /** 社区ID */
    @Excel(name = "社区ID")
    private Long communityId;

    public void setVoteId(String voteId) 
    {
        this.voteId = voteId;
    }

    public String getVoteId() 
    {
        return voteId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setQuestion(String question) 
    {
        this.question = question;
    }

    public String getQuestion() 
    {
        return question;
    }
    public void setOptions(String options) 
    {
        this.options = options;
    }

    public String getOptions() 
    {
        return options;
    }
    public void setGroups(String groups) 
    {
        this.groups = groups;
    }

    public String getGroups() 
    {
        return groups;
    }
    public void setCreater(String creater) 
    {
        this.creater = creater;
    }

    public String getCreater() 
    {
        return creater;
    }
    public void setSyncTime(Date syncTime) 
    {
        this.syncTime = syncTime;
    }

    public Date getSyncTime() 
    {
        return syncTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setViewNumber(Long viewNumber) 
    {
        this.viewNumber = viewNumber;
    }

    public Long getViewNumber() 
    {
        return viewNumber;
    }
    public void setVoteNumber(Long voteNumber) 
    {
        this.voteNumber = voteNumber;
    }

    public Long getVoteNumber() 
    {
        return voteNumber;
    }
    public void setCommunityId(Long communityId) 
    {
        this.communityId = communityId;
    }

    public Long getCommunityId() 
    {
        return communityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("voteId", getVoteId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("question", getQuestion())
            .append("options", getOptions())
            .append("groups", getGroups())
            .append("creater", getCreater())
            .append("syncTime", getSyncTime())
            .append("endTime", getEndTime())
            .append("viewNumber", getViewNumber())
            .append("voteNumber", getVoteNumber())
            .append("communityId", getCommunityId())
            .toString();
    }
}
